package com.test.mapper;

import com.test.model.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    User getUserByUserId(Integer userId);

    void createUser(User user);

    @Select("select user_id as userId,user_name as userName from t_user")
    List<User> getUsers();

}
